//
//  NewCarModel.swift
//  JiaoZiTaxi
//
//  Created by Auro on 2024/12/21.
//

import UIKit

struct NewCarModel: Codable, Equatable, Identifiable, Hashable {
    let agree, android, app, busy: Int
    let carAge, carID: Int
    let chepai: String?
    let companyid, contractID, counts, course: Int
    let driverLaosPhone, driverName, driverPhone: String
    let fanwei, fanyi, gongshi, guanzhus: Int
    let guimo, id, inTime, ios: Int
    let isGPS, isStop, jiedansum: Int
    let lat, latitude: String
    let level: Int
    let lon, longitude: String
    let money1, money2, online: Int
    let openid: String
    let orders, outTime, pingjia, pingjia2: Int
    let price, priceID, seats, sex: Int
    let sn: String
    let speed: Double
    let status, ttype: Int
    let type: String
    let used, validate, wx, xiehui: Int
    let yhq10, yuyue, zans: Int
    let carBrand,car_model: String?

    enum CodingKeys: String, CodingKey, Equatable, Hashable {
        case agree, android, app, busy
        case carAge = "car_age"
        case carBrand = "car_brand"
        case carID = "car_id"
        case chepai, companyid
        case contractID = "contract_id"
        case counts, course, driverLaosPhone, driverName, driverPhone, fanwei, fanyi, gongshi, guanzhus, guimo, id
        case inTime = "in_time"
        case ios, isGPS, isStop, jiedansum, lat, latitude, level, lon, longitude, money1, money2, online, openid, orders
        case outTime = "out_time"
        case pingjia, pingjia2, price
        case priceID = "price_id"
        case seats, sex, sn, speed, status, ttype, type, used, validate, wx, xiehui, yhq10, yuyue, zans ,car_model
    }
}

enum TypeEnum: String, Codable {
    case hitch = "hitch"
    case taxi = "taxi"
}

